<html>
<head><meta charset="utf-8"><title>Rustc loads sysroot artifacts before cargo ones? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html">Rustc loads sysroot artifacts before cargo ones?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="221078228"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078228" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078228">(Dec 28 2020 at 17:54)</a>:</h4>
<p>For <a href="https://github.com/rust-lang/rust/pull/79540">https://github.com/rust-lang/rust/pull/79540</a>, I want to have a version of <code>tracing</code> for rustdoc that's different from the one the compiler uses (so I can disable <code>max_level_info</code>). I tried just adding it to Cargo.toml, which did recompile tracing, but new version still isn't being used:</p>
<div class="codehilite"><pre><span></span><code>$ RUSTDOC_LOG=rustdoc rustdoc +stage1 re-export.rs
warning: some trace filter directives would enable traces that are disabled statically
 | `rustdoc=trace` would enable the TRACE level for the `rustdoc` target
 = note: the static max level is `info`
 = help: to enable DEBUG logging, remove the `max_level_info` feature
</code></pre></div>



<a name="221078242"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078242" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078242">(Dec 28 2020 at 17:54)</a>:</h4>
<p>does anyone know how I can get the compiler to link the new version of tracing instead of the one from rustc_private?</p>



<a name="221078252"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078252" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078252">(Dec 28 2020 at 17:54)</a>:</h4>
<p>debug info from rustc_metadata: <a href="https://github.com/rust-lang/rust/pull/79540#issuecomment-751478610">https://github.com/rust-lang/rust/pull/79540#issuecomment-751478610</a></p>



<a name="221078566"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078566" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078566">(Dec 28 2020 at 17:58)</a>:</h4>
<p>here's the relevant part of <code>x.py build -vv</code>:</p>
<div class="codehilite"><pre><span></span><code>   Compiling rustdoc v0.0.0 (/home/joshua/rustc/src/librustdoc)
     Running `/home/joshua/rustc/build/bootstrap/debug/rustc --crate-name rustdoc --edition=2018 src/librustdoc/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=1 -C debug-assertions=on -C overflow-checks=off -C metadata=90881a0b4d43ed90 -C extra-filename=-90881a0b4d43ed90 --out-dir /home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/incremental -L dependency=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/release/deps --extern itertools=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-83f1673fe142bb82.rmeta --extern minifier=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libminifier-03cda0faecd93e9d.rmeta --extern pulldown_cmark=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libpulldown_cmark-218119c083f96992.rmeta --extern regex=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libregex-cc02f38aaec32263.rmeta --extern rayon=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/librustc_rayon-a64ebd71fcb7fc7c.rmeta --extern serde=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libserde-327b851a94413353.rmeta --extern serde_json=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libserde_json-1e611e520e317e14.rmeta --extern smallvec=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libsmallvec-16ef2c309f063f78.rmeta --extern tempfile=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libtempfile-836a689e4c6e9699.rmeta --extern tracing=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libtracing-92b827284e416e0b.rmeta -Zmacro-backtrace &#39;-Clink-args=-Wl,-rpath,$ORIGIN/../lib&#39; -Ztls-model=initial-exec -Cllvm-args=-import-instr-limit=10 -Z binary-dep-depinfo`
</code></pre></div>



<a name="221078601"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078601" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078601">(Dec 28 2020 at 17:59)</a>:</h4>
<p>which does have <code>--extern tracing=/home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/libtracing-92b827284e416e0b.rmeta</code>, so this isn't a cargo bug</p>



<a name="221078627"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078627" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078627">(Dec 28 2020 at 17:59)</a>:</h4>
<p><code>rustc_driver</code> is still linked to the <code>tracing</code> found in the sysroot.</p>



<a name="221078711"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078711" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078711">(Dec 28 2020 at 18:00)</a>:</h4>
<p>hmm, that makes sense. Could I make that dynamically linked somehow, so I can override it?</p>



<a name="221078728"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078728" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078728">(Dec 28 2020 at 18:00)</a>:</h4>
<p>I guess I'd have to add <code>crate-type = "dylib"</code> to tracing itself</p>



<a name="221078750"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078750" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078750">(Dec 28 2020 at 18:01)</a>:</h4>
<p>No, it is not possible to override crates, even when dynamically linked. The SVH must match.</p>



<a name="221078843"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078843" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078843">(Dec 28 2020 at 18:02)</a>:</h4>
<p>Also the log macros of <code>tracing</code> expand differently depending on the selected feature flags, so you won't get tracing support for any rustc crate even if you did override it.</p>



<a name="221078853"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078853" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078853">(Dec 28 2020 at 18:02)</a>:</h4>
<p>ok, so the issue is that rustdoc calls <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.init_env_logger.html">https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.init_env_logger.html</a> instead of using <code>tracing::subscriber::set_global_default</code></p>



<a name="221078856"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078856" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078856">(Dec 28 2020 at 18:02)</a>:</h4>
<p><span class="user-mention silent" data-user-id="133247">bjorn3</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F/near/221078843">said</a>:</p>
<blockquote>
<p>Also the log macros of <code>tracing</code> expand differently depending on the selected feature flags, so you won't get tracing support for any rustc crate even if you did override it.</p>
</blockquote>
<p>that's fine, I don't need rustc debug logging, just rustdoc</p>



<a name="221078869"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078869" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078869">(Dec 28 2020 at 18:02)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F/near/221078853">said</a>:</p>
<blockquote>
<p>ok, so the issue is that rustdoc calls <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.init_env_logger.html">https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.init_env_logger.html</a> instead of using <code>tracing::subscriber::set_global_default</code></p>
</blockquote>
<p>yes</p>



<a name="221078921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221078921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221078921">(Dec 28 2020 at 18:03)</a>:</h4>
<p>time to copy paste 30 lines of logging <span aria-label="upside down" class="emoji emoji-1f643" role="img" title="upside down">:upside_down:</span></p>



<a name="221079023"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079023" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079023">(Dec 28 2020 at 18:04)</a>:</h4>
<p>What if you keep the <code>init_env_logger</code> call but add a separate initialize function for the rustdoc copy of tracing with a <code>RUSTDOC_LOG</code> env var?</p>



<a name="221079182"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079182" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079182">(Dec 28 2020 at 18:06)</a>:</h4>
<p>you mean like <code>fn init_env_logger(do_init: fn(Subscriber))</code> ?</p>



<a name="221079266"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079266" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079266">(Dec 28 2020 at 18:07)</a>:</h4>
<p>hmm this would be hard to test, since the whole point of this is not to modify the compiler - it would have to first be merged to master, and only then could I test if it actually worked :/</p>



<a name="221079278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079278">(Dec 28 2020 at 18:08)</a>:</h4>
<p>since otherwise there's no CI artifacts available</p>



<a name="221079328"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079328" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079328">(Dec 28 2020 at 18:08)</a>:</h4>
<p>That won't work as the <code>Subscriber</code> type from rustc's copy of tracing would be dfifferent from rustdoc's copy of tracing.</p>



<a name="221079360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079360">(Dec 28 2020 at 18:08)</a>:</h4>
<p>right, that makes sense. What do you mean by 'a separate initialize function' then?</p>



<a name="221079396"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079396" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079396">(Dec 28 2020 at 18:09)</a>:</h4>
<p>I mean a literal copy into rustdoc with a different env var. Both the original and the copy will then be called by rustdoc, so you can have both rustc and rustdoc log support.</p>



<a name="221079506"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079506" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079506">(Dec 28 2020 at 18:10)</a>:</h4>
<p>oh oh I see - I currently have</p>
<div class="codehilite" data-code-language="Diff"><pre><span></span><code><span class="gh">diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs</span>
<span class="gh">index 72f1b817d5d..7f0146f4a62 100644</span>
<span class="gd">--- a/src/librustdoc/lib.rs</span>
<span class="gi">+++ b/src/librustdoc/lib.rs</span>
<span class="gu">@@ -94,7 +94,9 @@</span>
 pub fn main() {
     rustc_driver::set_sigpipe_handler();
     rustc_driver::install_ice_hook();
<span class="gd">-    rustc_driver::init_env_logger("RUSTDOC_LOG");</span>
<span class="gi">+    //rustc_driver::init_env_logger("RUSTDOC_LOG");</span>
<span class="gi">+    init_logging();</span>
</code></pre></div>
<p>and you're suggesting that I just not comment out <code>init_env_logger</code></p>



<a name="221079515"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079515" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079515">(Dec 28 2020 at 18:10)</a>:</h4>
<p>yeah that would work</p>



<a name="221079589"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079589" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079589">(Dec 28 2020 at 18:11)</a>:</h4>
<p>You may need a different env var for the rustc_driver::init_env_logger call to avoid the warning.</p>



<a name="221079752"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079752" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079752">(Dec 28 2020 at 18:13)</a>:</h4>
<p>well I wonder whether this makes sense to do at all - CI artifacts will never have logging enabled</p>



<a name="221079813"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079813" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079813">(Dec 28 2020 at 18:13)</a>:</h4>
<p>ayyyy copy-pasting <code>init_env_logger</code> worked <span aria-label="tada" class="emoji emoji-1f389" role="img" title="tada">:tada:</span></p>



<a name="221079819"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079819" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079819">(Dec 28 2020 at 18:13)</a>:</h4>
<p><span class="user-mention" data-user-id="133247">@bjorn3</span> thanks for the help!</p>



<a name="221079825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Rustc%20loads%20sysroot%20artifacts%20before%20cargo%20ones%3F/near/221079825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Rustc.20loads.20sysroot.20artifacts.20before.20cargo.20ones.3F.html#221079825">(Dec 28 2020 at 18:13)</a>:</h4>
<p>np</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>